const tile = new ol.layer.Tile({
    source: new ol.source.XYZ({
        url: 'http://webrd0{1-4}.is.autonavi.com/appmaptile?x={x}&y={y}&z={z}&lang=zh_cn&size=1&scale=1&style=8'
    })
})
var map = new ol.Map({
    target: 'map',
    layers: [tile],
    view: new ol.View({
        center: [12946639.779865, 4867180.25922189],
        zoom: 9.5,
        projection: 'EPSG:3857'
    })
});


// map.addLayer(tile)

const wms = new ol.layer.Image({
    source: new ol.source.ImageWMS({
        url: 'https://lzugis.cn/geoserver/lzugis/wms',
        params: {
            'FORMAT': 'image/png',
            'LAYERS': 'lzugis:lzugis'
        },
    }),
    opacity: 0.4
});
map.addLayer(wms)